package com.jt.chapter06.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiang tao
 * @date 2022/1/21
 * @description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BizServiceException extends RuntimeException{
    private String code;
    private String  errMsg;
    public BizServiceException(String errMsg){
        this.errMsg = errMsg;
        this.code = "302";
    }

}
